package cn.zwx.goods.svc.rpc.dto;

import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author zhangwenxue
 */
@Data
public class InsertSpuDTO implements Serializable {

    @Valid
    @RequestParam(value = "{}",required = true,description = "spu基本信息")
    @NotNull(message = "spu信息不能为空")
    private BuilderSpuDTO spu;
    /**
     * spu 属性
     */
    @Valid
    @RequestParam(value = "[]",required = true,description = "spu属性")
    @NotNull(message = "spu属性不能为空")
    private List<BuilderAttrDTO> attrSpuList;
    /**
     * sku 信息
     */
    @Valid
    @NotNull(message = "sku信息不能为空")
    @RequestParam(value = "[]",required = true,description = "sku信息")
    private List<BuilderSkuDTO> skuList;

}
